#include "baseShm.h"
#include <string.h>

int main()
{
    daniel::BaseShm::ptr shm(new daniel::BaseShm(100,0));
    void* start=shm->attachToProcess();
    char buf[20];
    memcpy(buf,start,20);
    printf("read from shm:%s\n",buf);
    shm->detachFromProcess();
    printf("press a key to continue!\n");
    getchar();
    shm->destroyShm();
    return 0;
}